
set(headers ${CMAKE_SOURCE_DIR}/include)

file(GLOB sources "*.c")

set(lib_sources ${sources})
list(REMOVE_ITEM lib_sources ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)

add_library(hello ${lib_sources})
target_include_directories(hello PUBLIC "${headers}")

add_executable(helloExe ${sources})

target_link_libraries(helloExe hello)
